<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改用户</title>
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>修改用户信息</small>
                </h1>
            </div>
        </div>
    </div>
    <form action="${pageContext.request.contextPath}/user/updateUser" method="post">
        <!-- 前端传递隐藏域 没有这个的话，会修改失败 -->
        <input type="hidden" name="loanNo" value="${QUser.loanNo}">

        <div class="form-group">
            <label>姓名</label>
            <input type="text" name="loanName" class="form-control" required>
        </div>

        <div class="form-group">
            <label>性别</label>
            <input type="text" name="sex" class="form-control" required>
        </div>

        <div class="form-group">
            <label>班级</label>
            <input type="text" name="classNo" class="form-control" required>
        </div>

        <div class="form-group">
            <label>专业</label>
            <input type="text" name="major" class="form-control" required>
        </div>

        <div class="form-group">
            <input type="submit" class="form-control" value="修改">
        </div>
    </form>
</div>
</body>
</html>